package com.pure.controller
{
	import com.pure.model.UserProxy;
	import com.pure.model.vo.UserVO;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class PrepModelCommand extends SimpleCommand
	{
		
		override public function execute( note:INotification ) : void
		{
			// Create User Proxy, 
			var userProxy:UserProxy = new UserProxy();
			
			//Populate it with dummy data 
			userProxy.addItem( new UserVO("lstooge,Larry", "larry@stooges.com", "THU") );
			userProxy.addItem( new UserVO("cstooge,Curly", "curly@stooges.com", "JNU" ) );
			userProxy.addItem( new UserVO("mstooge,Moe", "moe@stooges.com", "ZSU") );
			
			facade.registerProxy(userProxy);
		}
		
	}
}